<{include file="public/header.html"}> 
	<!--中间内容-->
	<div class="w1180-con">
		<div class="duobao-home mt20">
			<div class="duobao-banner fl">
				<div class="carousel">
					<div class="img-list">
                                            <a href="<{eval url('lottery/12618')}>" target="_blank" style="display:block;">
							<img src="<{$style_dir}>/img/banner/duo1.jpg"/>
						</a>
						<a href="<{eval url('lottery/12616')}>" target="_blank">
							<img src="<{$style_dir}>/img/banner/duo2.jpg"/>
						</a>
					</div>
					<ul class="btn-list">
						<li class="active"></li>
						<li></li>
					</ul>
				</div>
			</div>
			<script type="text/javascript">
                            $(function(){
                                var $carouselLi = $('.carousel .btn-list li');
                                var index = 0;
                                var bantime;
                                $('.carousel .btn-list li').on('click',function(){
                                    index = $(this).index();
                                    carouselfn();
                                });
                                function carouselfn(){
                                    $carouselLi.eq(index).addClass('active').siblings().removeClass('active');
                                    $carouselLi.parents('.carousel').find('.img-list a').eq(index).fadeIn().siblings().fadeOut();
                                };
                                $('.duobao-banner').hover(function(){
                                        clearInterval(bantime);
                                },function(){
                                        banauto();
                                });
                                banauto();
                                function banauto(){
                                    bantime = setInterval(function(){
                                        index ++;
                                        index %= $carouselLi.length;
                                        carouselfn();
                                    },5000);
                                };
                            })
			</script>
			
			
			
			<div class="user-data fr">
                            <{if !$bbs_user_info}>
				<div class="logged">
					<div class="login-btn">
						<a href="<{eval url('account/login')}>" class="mt20">登&nbsp;&nbsp;&nbsp;录</a>
						<a href="<{eval url('account/register')}>" class="mt20">注&nbsp;&nbsp;&nbsp;册</a>
					</div>
					<div class="fast-btn mt20">
						<div class="border">
							<p>快捷登录</p>
						</div>
						<ul class="mt20">
							<li>
                                                            <a href="<{eval url('account/qq_login')}>" class="qq"></a>
							</li>
							<li>
								<a href="<{eval url('account/weibo_login')}>" class="weibo"></a>
							</li>
						</ul>
					</div>
				</div>
                            <{else}>
				<div class="login">
					<div class="p20">
                                            <a href="<{eval url('account')}>" class="head">
                                                <img src="<{$bbs_user_info['head_img']}>"/>
						</a><br />
						<a href="<{eval url('account')}>" class="name">
							<{$bbs_user_info['nickname']}>
						</a><br />
                                                <a href="javascript:void(0);" class="money mt10">溜珠数：<{$bbs_user_info['balance']}></a>
						<div class="num mt20">
							<a href="javascript:void(0);" class="fl">
								<{$duo_data['duo_total']}><br />
								<i>参与数</i>
								<b></b>
							</a>
							<a href="javascript:void(0);" class="fr">
								<{$duo_data['duo_winner_total']}><br />
								<i>中奖数</i>
							</a>
							<div class="clear"></div>
						</div>
						<div class="btn">
							<a href="<{eval url('recharge')}>" class="fl">立即充值</a>
                                                        <a href="<{eval finance_url('user/duobao')}>" class="fr">参与记录</a>
							<div class="clear"></div>
						</div>
					</div>
				</div>
                            <{/if}>
			</div>
			<div class="clear"></div>
<!--			<div class="list mt20">
				<p class="duobao-list-title mb10">晒单分享</p>
				<div class="share-show fl">
					<ul class="piclist mainlist" id="art-marquee">
                                                <{foreach from=$arts item=val}>
						<li>
                                                        <a href="<{$val['detial_url']}>" target="_blank" class="img">
                                                                <img src="<{$val['thumb']}>"/>
							</a>
							<a href="<{$val['detial_url']}>" target="_blank" class="title textnum8"><{$val['title']}></a>
                                                            <a href="<{$val['detial_url']}>" target="_blank" class="txt" style="display:block;"><{$val['summary']}></a>
							<a href="<{$val['space_url']}>" target="_blank" class="name fl mt5"><{$val['nickname']}></a><i class="num fr mt5"><{$val['readnum']}></i>
							<div class="clear"></div>
						</li>
                                                <{/foreach}>
					</ul>
				</div>
				<div class="wdtext fr">
                                    <p class="title plr20">相关问答<a href="<{$more_wenda_url}>" target="_blank" class="fr look-more">更多 &gt;&gt;</a></p>
					<div class="plr20">
						<ul>
                                                    <{foreach from=$wendas item=val}>
							<li>
                                                            <a href="<{$val['space_url']}>" target="_blank" class="head fl mr10 mt5">
									<img src="<{$val['head_img']}>"/>
								</a>
								<a href="<{$val['wenda_url']}>" target="_blank" class="con">
									<p class="textnum13"><{$val['title']}></p>
									<i class="textnum15"><{$val['summary']}></i>
								</a>
							</li>
                                                    <{/foreach}>
						</ul>
					</div>
				</div>
				<div class="clear"></div>
			</div>-->
			<div class="list mt20">
                            <p class="duobao-list-title mb10">最新揭晓 <a href="<{eval url('lottery_finish/list')}>" target="_blank" class="fr col999"> 共揭晓商品&nbsp;<span class="error goods-num"><{$totalLucters}></span>&nbsp;个&nbsp;>></a></p>
                                <input type="hidden" id="maxSeconds" value="<{$luckers_max_second}>"/>
                                <div class="fl" style="border-left-style: none;border-right-style: none;width: 888px;height:367px;position:relative;overflow:hidden;">
                                    <ul class="product-list" id="NewLuckyList">
                                        <{foreach from=$newlists item=val}>
                                        <li id="goods-<{$val['shopid']}>" data-id="<{$val['shopid']}>">
                                                <div class="p20">
                                                        <a href="<{$val['lottery_url']}>" class="img">
                                                                <img src="<{$val['thumb']}>"  width="254" height="160"/>
                                                        </a>
                                                        <a href="<{$val['lottery_url']}>" class="name mt10">
                                                                <{$val['title']}>
                                                                <b></b>
                                                        </a>
                                                        <p class="zongrenshu">总需：<{$val['zongrenshu']}> 人次</p>
                                                        <div class="product-progress">
                                                            <{if $val['user']}>
                                                            <div class="duobao-winners mt10 pt10">
                                                                <a href="<{$val['user']['space_url']}>" class="head">
                                                                    <img  src="<{$val['user']['head_img']}>"/>
                                                                </a>
                                                                <div class="fr w184">
                                                                    <p>幸运伙伴 ：<a href="<{$val['user']['space_url']}>"><{$val['user']['nickname']}></a></p>
                                                                    <p>幸运号码：<{$val['user']['luck_code']}></p>
                                                                    <p>本期参与：<{$val['user']['num']}>人次</p>
                                                                    <p>揭晓时间：<{$val['user']['time']}></p>
                                                                </div>
                                                            </div>
                                                            <{else}>
                                                            <div class="duobao-countdown mt10">
                                                                    <p class="title mb20 mt10">即将揭晓：</p>
                                                                    <div class="count-down" data-time="<{$val['times']}>">
                                                                            <b class='t_minuter1'>0</b>
                                                                            <b class='t_minuter2'>0</b>
                                                                            <em class='boss-red divide'>:</em>
                                                                            <b class='t_second1'>0</b>
                                                                            <b class='t_second2'>0</b>
                                                                            <em class='boss-red divide'>:</em>
                                                                            <b class='t_minsecond1'>0</b>
                                                                            <b class='t_minsecond2'>0</b>
                                                                    </div>
                                                            </div>
                                                            <{/if}>
                                                        </div>

                                                </div>
                                            </li>
                                        <{/foreach}>
                                    </ul>
                                </div>
                                <div class="ranking">
                                    <p class="title plr20">正在参与</p>
                                    <div class="con">
                                        <input type="hidden" id="LuBuyId" value="<{$luckers_max_id}>">
                                        <ul id="UserLuckyList">
                                            <{foreach from=$luckers item=val}>
                                            <li>
                                                    <div class="user-name">
                                                        <a href="<{$val['space_url']}>"><img src="<{$val['head_img']}>"/><{$val['nickname']}></a>
                                                            <i class="num fr"><{$val['num']}>人次</i>
                                                    </div>
                                                    <div class="txt">
                                                            <a href="<{$val['lottery_url']}>" class="product-name"><{$val['title']}></a>
                                                            <i class="time fr"><{$val['time']}></i>
                                                    </div>
                                            </li>
                                            <{/foreach}>
                                        </ul>
                                    </div>
				</div>
				<div class="clear"></div>
			</div>
			<div class="list mt20">
				<p class="duobao-list-title mb10">全部商品</p>
				<ul class="product-list">
                                    <{foreach from=$shops item=val}>
					<li>
                                            <div class="p20">
                                                <a href="<{$val['lottery_url']}>" target="_blank" class="img">
                                                    <img src="<{$val['thumb']}>" width="254" height="160"/>
                                                    </a>
                                                    <a href="<{$val['lottery_url']}>" target="_blank" class="name mt10">
                                                            <{$val['title']}>
                                                            <b></b>
                                                    </a>
                                                    <p class="zongrenshu">总需：<{$val['zongrenshu']}> 人次</p>
                                                    <div class="duobao-progress mt10">
                                                            <div class="loadbox">
                                                                    <dl class="big-barbox">
                                                                            <dd class="barline">
                                                                                    <div data-current="<{$val['canyurenshu']}>" data-total="<{$val['zongrenshu']}>" style="width:0px;" class="charts"></div>
                                                                            </dd>
                                                                    </dl>
                                                                    <div class="num fl mt15 tl">
                                                                            <p><{$val['canyurenshu']}></p>
                                                                            <i>已参与人次</i>
                                                                    </div>
                                                                    <div class="num fr mt10 tr">
                                                                            <p><{$val['shenyurenshu']}></p>
                                                                            <i>剩余人次</i>
                                                                    </div>
                                                                    <div class="clear"></div>
                                                                    <a href="<{$val['lottery_url']}>" target="_blank" class="btn mt10">立即参与</a>
                                                            </div>
                                                            <div class="clear"></div>
                                                    </div>
                                            </div>
					</li>
                                    <{/foreach}>
				</ul>
				<div class="clear"></div>
			</div>
		</div>
	</div>
  <script type="text/javascript" src="<{$style_dir}>/js/duobao.widget.js"></script>
	<!--底部-->
    <{include file="public/footer.html"}> 